//
//  CleanCacheCellTableViewCell.m
//  掌上海印
//
//  Created by 陈德锋 on 16/4/17.
//  Copyright © 2016年 handsome. All rights reserved.
//

#import "CleanCacheCellTableViewCell.h"

@implementation CleanCacheCellTableViewCell

+ (instancetype)CleanCacheCellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"otherCell";
    CleanCacheCellTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (!cell) {
        cell = [[CleanCacheCellTableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:ID];
    }
    return cell;
}

-(instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.contentView.backgroundColor = [UIColor whiteColor];
        
        _cacheLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        _cacheLabel.font = [UIFont systemFontOfSize:16.0];
        [self.contentView addSubview: _cacheLabel];
        
        _cache = [[UILabel alloc] initWithFrame:CGRectZero];
        _cache.font = [UIFont systemFontOfSize:16.0];
        [self.contentView addSubview: _cache];
        
    }
    return self;
}

-(void) layoutSubviews
{
    [super layoutSubviews];
    
    _cacheLabel.frame = CGRectMake(10, 10, 70, 25);
    _cacheLabel.text = @"清理缓存";
    
    _cache.frame = CGRectMake([[UIScreen mainScreen]bounds].size.width-80, 10, 70, 25);
}




@end
